<?php

class BaseApiAction extends Action {

	protected $uid;

	protected function _initialize() {
		//调试用的
		$this->uid = Session::get('user_id');
	}

	//登录状态验证
	public function auth() {
		if (empty($this->uid)) {
			$this->ajaxReturn("", "请先登陆", -999);
		}
	}

}

?>
